import {NextRequest, NextResponse} from "next/server";
import {prisma} from "@lib/prisma";

export async function GET(request: NextRequest) {
    try {

        return NextResponse.json({
            success: true,
            data: "hello world"
        })
    } catch (error) {
        console.error('Error fetching orders:', error)
        return NextResponse.json(
            { success: false, error: 'Failed to fetch orders' },
            { status: 500 }
        )
    }
}